<template>
  <el-select
    v-show="setting.isNew"
    :value="value"
    style="width: 70px"
    @change="val => $emit('input', val)"
    class="select"
    clearable
    placeholder="选择"
  >
    <el-option label="送电" :value="2"></el-option>
    <el-option label="断电" :value="1"></el-option>
  </el-select>
</template>

<script>
export default {
  inject: ['setting'],
  props: {
    value: {}
  }
};
</script>

<style scoped lang="scss">
.select {
  ::v-deep .el-input__inner {
    padding-left: 5px;
  }
}
</style>